package com.firemoss.atonement.example.contactmanager.view.helper
{
	import com.firemoss.atonement.example.contactmanager.model.Contact;

	public class ContactFormatter
	{
		public static function formatContactName( contact : Contact ) : String
		{
			return !isNaN(contact.id) ? contact.lastName + ", " + contact.firstName : "(New Contact)" 
		}
	}
}